package com.supplychain.scm.core.common.validator;

import com.google.common.collect.Lists;
import lombok.experimental.Delegate;

import javax.validation.Valid;
import java.util.List;

/**
 * @author liyang
 * @version 1.0.0
 * @ClassName ValidationList
 * @Description 能校验的List集合
 * @createTime 21:09:00 2022/11/30
 */
public class ValidationList<E> implements List<E> {

	@Delegate
	@Valid
	public List<E> list = Lists.newArrayList();

	@Override
	public String toString() {
		return list.toString();
	}
}
